﻿#ifndef DETAILADD_H
#define DETAILADD_H

#include <QDialog>
#include "m_function.h"

namespace Ui {
class DetailAdd;
}

class DetailAdd : public QDialog
{
    Q_OBJECT

public:
    explicit DetailAdd(QWidget *parent,const QString &uid);
    ~DetailAdd();

    int getId(const QString &table,const QString &uid) const;
    QString getValue(const QString &table,const QString &key,  int id) const;
    bool saveRecord();

private slots:
    void on_submit_clicked();

private:
    Ui::DetailAdd *ui;

    QString indexTable;
    QString detailTable;

    QString _uid;
    QString name,number;
    QString remark;
};

#endif // DETAILADD_H
